package test.t01;

public class LianXi01 {
	/*这是一个菲波拉契数列问题*/
	
	public static void main(String[] args) {
		for (int i = 1; i < 24; i++) {
		    long fibonacci = fibonacci(10);
			System.out.println(fibonacci(i));
		}

	}

	public static long fibonacci(long number) {
		if ((number == 0) || (number == 1)) {
			return number;
		} else {
			return fibonacci(number - 1) + fibonacci(number - 2);
		}
	}
}
